package com.hz.api.admin.model.enums;

public enum ArticleTags {
    Docker("Docker", 1),
    Java("Java",2),
    spring_boot("Spring Boot",3),
    jvm("jvm", 4),
    linux("linux", 5),
    netty("netty", 6),
    kotlin("kotlin", 7),
    操作系统("操作系统", 8),
    mysql("mysql", 9),
    go("go", 10),
    Elasticsearch("Elasticsearch", 11),
    PostgreSQL("PostgreSQL", 12),
    TensorFlow("TensorFlow", 13),
    JMeter("JMeter", 14),
    KAFKA("Kafka", 15),
    redis("redis", 16),
    zookeeper("zookeeper", 17),
    spring_cloud("spring_cloud", 18),
    spring_gateway("spring_gateway", 19),
    spring拦截器("spring拦截器", 20),
    maven("maven", 21),
    数据异构("数据异构", 22),
    aix("aix", 23),
    java_stream("java_stream", 24),
    jdk("jdk", 25),





    ;
    public String tagName;

    public int tagValue;

    ArticleTags(String tagName, int tagValue){
        this.tagName = tagName;
        this.tagValue = tagValue;
    }

    public static String getNameById(int tagValue){
        for (ArticleTags value : ArticleTags.values()) {
            if(value.tagValue == tagValue){
                return value.tagName;
            }
        }
        return null;
    }
}
